package tideengineimplementation.gui;

import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;

public class TideFrame_AboutBoxPanel1
  extends JPanel
{
  @SuppressWarnings("compatibility:-7269217593939379012")
  public final static long serialVersionUID = 1L;

  private JLabel labelTitle = new JLabel();
  private JLabel labelAuthor = new JLabel();
  private JLabel labelCopyright = new JLabel();
  private JLabel labelCompany = new JLabel();
  private GridBagLayout layoutMain = new GridBagLayout();
  private transient Border border = BorderFactory.createEtchedBorder();
  private JLabel logoLabel = new JLabel();

  public TideFrame_AboutBoxPanel1()
  {
    try
    {
      jbInit();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }

  private void jbInit()
    throws Exception
  {
    this.setLayout( layoutMain );
    this.setBorder( border );
    this.setBackground(Color.white);
    labelTitle.setText( "Oliv's Tide Computer" );
    labelAuthor.setText( "C'est moi qui l'ai fait" );
    labelCopyright.setText( "Copyright 2011" );
    labelCompany.setText( "OlivSoft" );
    logoLabel.setIcon(new ImageIcon(this.getClass().getResource("tide.jpg")));

    this.add( labelTitle, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
          new Insets(5, 15, 0, 15), 0, 0));
    this.add( labelAuthor, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
          new Insets(0, 15, 0, 15), 0, 0));
    this.add( labelCopyright, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
          new Insets(0, 15, 0, 15), 0, 0));
    this.add( labelCompany, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
          new Insets(0, 15, 0, 15), 0, 0));
    this.add(logoLabel, new GridBagConstraints(0, 0, 1, 4, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE,
          new Insets(10, 10, 10, 10), 0, 0));
  }
}
